<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function fun() {
            console.log(1 + 1);

        }
        (function () {
            console.log('匿名函数');

        })();
        (function (x, y) {
            console.log(x + y);
        }(1, 2));

        function fun(x, y) {
            x = x || 0
            y = y || 0
            console.log(x + y)
        }
        fun()

        console.log(11 && 22);

    </script>
</body>

</html>